<form action="<?php echo TES?>periksa_pti_b" method="post">
	<table width="1000" border="0" align="center">
		<tr>
			<td colspan="4" scope="col">1. Sebutkan ekstensi format nama file c++!</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_1" value="1" selected/>.c</td>
			<td><input type="radio" name="soal_1" value="2" />.c++</td>
			<td><input type="radio" name="soal_1" value="3" />.cplusplus</td>
			<td><input type="radio" name="soal_1" value="4" />.cpp</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">2. Bagaimana cara meminta masukkan dari user, misal akan disimpan ke variabel bernama tes?</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_2" value="1" selected/>printf("%i", tes);</td>
			<td><input type="radio" name="soal_2" value="2" />scanf("%i", tes);</td>
			<td><input type="radio" name="soal_2" value="3" />printf("%i", &tes);</td>
			<td><input type="radio" name="soal_2" value="4" />scanf("%i", &tes);</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">3. % apa yang bisa digunakan untuk menyatakan integer?</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_3" value="1" selected/>%i</td>
			<td><input type="radio" name="soal_3" value="2" />%f</td>
			<td><input type="radio" name="soal_3" value="3" />%d</td>
			<td><input type="radio" name="soal_3" value="4" />ada dua jawaban benar</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">4. Sebutkan hasil dari code dibawah ini!<br />
				int a=1;<br />
				printf(&quot;%i&quot;,a++);</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_4" value="1" selected/>1</td>
			<td><input type="radio" name="soal_4" value="2" />2</td>
			<td><input type="radio" name="soal_4" value="3" />1++</td>
			<td><input type="radio" name="soal_4" value="4" />(error)</td>   
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">5. Sebutkan hasil dari code dibawah ini!<br />
				int a=2;<br />
				int b=9;<br />
				if(b%a == 1)<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;genap&quot;);<br />
				else<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;ganjil&quot;);
			</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_5" value="1" selected/>genap</td>
			<td><input type="radio" name="soal_5" value="2" />ganjil</td>
			<td><input type="radio" name="soal_5" value="3" />genapganjil</td>
			<td><input type="radio" name="soal_5" value="4" />(tidak ada tampilan)</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">6. Sebutkan hasil dari code dibawah ini!<br />
				int a=3;<br />
				int b=6;<br />
				if(a*b&lt;0)<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;negatif&quot;);<br />
				else if(a-b&gt;0)<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;positif&quot;);</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_6" value="1" selected/>negatif</td>
			<td><input type="radio" name="soal_6" value="2" />positif</td>
			<td><input type="radio" name="soal_6" value="3" />negatifpositif</td>
			<td><input type="radio" name="soal_6" value="4" />(tidak ada tampilan)</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">7. Mana code dibawah ini yang TIDAK menyebabkan infinite loop?</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_7" value="1" selected/>
				<br />
				int a=1;<br/>
				while(a>0){<br/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a+=4;<br/>
				}
			</td>
			<td><input type="radio" name="soal_7" value="2" />
				<br />
				<br />
				for(int a=-1;a&lt;0;a-=2){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a+=3;<br />
				}</td>
			<td><input type="radio" name="soal_7" value="3" />
				<br />
				int a=1;<br />
				while(a&lt;2){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a--;<br />
				}</td>
			<td><input type="radio" name="soal_7" value="4" />
				<br />
				<br />
				int b=0;<br />
				for(int a=1; a&gt;0; b--){<br />
				}</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">8. Sebutkan hasil dari code di bawah ini!<br />
				int i=10;<br />
				while(i&gt;1){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;%i &amp; &quot;,i);<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i-=2;<br />
				}</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_8" value="1" selected/>
				10 &amp; 8 &amp; 6 &amp; 4 &amp; 2</td>
			<td><input type="radio" name="soal_8" value="2" />
				10 &amp; 8 &amp; 6 &amp; 4 &amp; 2 &amp; 0</td>
			<td><input type="radio" name="soal_8" value="3" />
				10 &amp; 8 &amp; 6 &amp; 4 &amp; 2 &amp;</td>
			<td><input type="radio" name="soal_8" value="4" />
				10 &amp; 8 &amp; 6 &amp; 4 &amp; 2 &amp; 0 &amp;</td>
		</tr>
		<tr>
			<td colspan="4" scope="col"><hr/></td>
		</tr>
		<tr>
			<td colspan="4">9. Sebutkan data yang terbentuk dari code berikut!<br />
				for(i=0;i&lt;5;i++){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data[i]=2*i+1;<br />
				}</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_9" value="1" selected/>
				<br />
				data[0]=1<br />
				data[1]=3<br />
				data[2]=5<br />
				data[3]=7<br />
				data[4]=9<br />
				data[5]=11</td>
			<td><input type="radio" name="soal_9" value="2" />
				<br />
				data[1]=1<br />
				data[2]=3<br />
				data[3]=5<br />
				data[4]=7<br />
				data[5]=9<br />
				data[6]=11</td>
			<td><input type="radio" name="soal_9" value="3" />
				<br />
				data[0]=1<br />
				data[1]=3<br />
				data[2]=5<br />
				data[3]=7<br />
				data[4]=9</td>
			<td><input type="radio" name="soal_9" value="4" />
				<br />
				data[1]=1<br />
				data[2]=3<br />
				data[3]=5<br />
				data[4]=7<br />
				data[5]=9</td>
		</tr>
		<tr>
		  <td colspan="4" scope="col"><hr/></td>
	   </tr>
		<tr>
			<td colspan="4">10. Sebutkan kesalahan program di bawah ini!<br />
				int jumlah();<br />
				int jumlah(){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int i=0;<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int hasil=0;<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(i&lt;10){<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hasil=hasil+data[i];<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//anggap data merupakan array integer yang sudah terisi dari data[0] sampai data[9]<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i++;<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
				}</td>
		</tr>
		<tr>
			<td><input type="radio" name="soal_10" value="1" selected/>deklarasi jumlah</td>
			<td><input type="radio" name="soal_10" value="2" />di dalam kurung {} while</td>
			<td><input type="radio" name="soal_10" value="3" />di dalam kurung {} jumlah tetapi diluar while</td>
			<td><input type="radio" name="soal_10" value="4" />program sudah benar</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<br/><br/><br/>
				<input type="submit" name="button" id="button" value="Submit" />
			</td>
		</tr>
	</table>
</form>